package com.easygem.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author 文晓平
 * @Date 2023/12/16 21:40
 * @Version 1.0
 **/
@Data
@ApiModel(value = "用户登入表单")
public class UserLoginDTO {
    //https://blog.csdn.net/weixin_46015018/article/details/122637042
    @NotBlank(message = "用户名不能为空")  //校验注解
    @ApiModelProperty(value = "用户名")
    private String username;
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;

    @NotBlank(message = "账户不能为空")
    @ApiModelProperty(value = "账户名")
    private String accountName;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String code;

    private boolean rememberme;
}
